package com.ykdl.member.kid.beans;

import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class StoreBean implements Serializable, IJsonParser{

	/** "member_right_intro": "会员权利简介",
            "store_name": "门店1号店",
            "coordinate": {
                "coordinate_y": 39.92,
                "coordinate_x": 116.3
            },
            store_id
            "distance": 0.84
	 * 
	 * {
            "member_right_intro": "各种吃喝",
            "card_name": "好吃火锅店",
            "store_id": 1,
            "store_name": "王大人火锅店",
            "file": {
                "file_meta": null,
                "file_url": "http://imgs.ykdllmyr.com/stores/2014/11/28/vnJpYtsAu4tGR3hkaXT9Pf.jpeg",
                "file_id": 12
            },
            "coordinate": {
                "coordinate_y": 116,
                "coordinate_x": 39
            }
        },
	 */
	private static final long serialVersionUID = 1L;
	private String member_right_intro;
	private String store_name;
	private String distance;
	private String store_id ;
	private String name;
	public String getName() {
		return name;
	}
	public String getStore_id() {
		return store_id;
	}
	public String getMember_right_intro() {
		return member_right_intro;
	}
	public String getStore_name() {
		return store_name;
	}
	public String getDistance() {
		return distance;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, StoreBean.class);
		}
		return null;
	}

}
